package com.spider.controller;

import com.spider.domain.ResponseResult;
import com.spider.service.LinkService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 罗振军
 * @version V1.0
 * @Package com.spider.controller
 * @date 2024/7/19 14:05
 */
@RestController
@RequestMapping("link")
@Api(tags = "友链的相关接口文档", description = "我是描述信息")
public class LinkController {

    @Autowired
    private LinkService linkService;

    @GetMapping("/getAllLink")
    public ResponseResult getAllLink() {
        return linkService.getAllLink();
    }
}
